package cn.edu.njuit.webserver.securityserver.repository;

import cn.edu.njuit.webserver.securityserver.entity.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRoleRepository extends JpaRepository<UserRole,Long> {
    /**
     * 根据账户id删除角色
     * @param accountId
     */
    void deleteByUserAccountId(Long accountId);
}
